﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBHelper;
using System.Data;
using System.Data.SqlClient;
using BusinessLayer.FindArtInfo.Entities;

namespace BusinessLayer.FindArtInfo
{
    public class ItemTypeBL
    {
        public List<ItemType> GetAll()
        {
            List<ItemType> result = new List<ItemType>();
            var adapter = new BaseDAO(DbConfig.DbFindArtInfoConnectionString);            
            try
            {
                result = adapter.GetList<ItemType>("sp_ItemType_Select_All", CommandType.StoredProcedure, CustomConnectionState.KeepOpen);                
                return result;
            }
            catch (Exception)
            {
            }
            finally { adapter.Dispose(); }
            return result;
        }
    }
}
